//
//  ANWebService+ShoppingCar.h
//  Ants
//
//  Created by ZHM on 16/8/30.
//  Copyright © 2016年 ZHM. All rights reserved.
//



@interface ANWebService (ShoppingCar)

/**
 * 当前用户购物车
 */
- (void)fetchCurrentUserShoppingItemsCompletion:(void(^)(NSArray *shoppingItems, NSError *error))completion;

/**
 * 添加商品到购物车
 */
- (void)addShoppingItemWithProduct:(ANBDProduct *)product Completion:(void(^)(BOOL succeeded, NSError *error))completion;
/**
 * 删除购物项
 */
- (void)removeShoppingItem:(ANBDShoppingItem *)shoppingItem  completion:(void(^)(BOOL succeeded, NSError *error))completion;
/**
 * 更新数量
 */
- (void)updateShoppingItem:(ANBDShoppingItem *)shoppingItem Quantity:(NSUInteger)quantity  completion:(void (^)(BOOL, NSError *))completion;
@end
